package com.ruoyi.voit.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 充电桩异常事件记录对象 error_log
 * 
 * @author ruoyi
 * @date 2025-07-17
 */
public class ErrorLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 日志记录ID（UUID） */
    private String logId;

    /** 关联充电桩ID */
    @Excel(name = "关联充电桩ID")
    private String pileId;

    /** 标准化错误代码 */
    @Excel(name = "标准化错误代码")
    private String errorCode;

    /** 详细错误描述 */
    @Excel(name = "详细错误描述")
    private String errorMsg;

    /** 错误发生时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "错误发生时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date errorTime;

    /** 问题解决状态 */
    @Excel(name = "问题解决状态")
    private Integer resolved;

    public void setLogId(String logId) 
    {
        this.logId = logId;
    }

    public String getLogId() 
    {
        return logId;
    }

    public void setPileId(String pileId) 
    {
        this.pileId = pileId;
    }

    public String getPileId() 
    {
        return pileId;
    }

    public void setErrorCode(String errorCode) 
    {
        this.errorCode = errorCode;
    }

    public String getErrorCode() 
    {
        return errorCode;
    }

    public void setErrorMsg(String errorMsg) 
    {
        this.errorMsg = errorMsg;
    }

    public String getErrorMsg() 
    {
        return errorMsg;
    }

    public void setErrorTime(Date errorTime) 
    {
        this.errorTime = errorTime;
    }

    public Date getErrorTime() 
    {
        return errorTime;
    }

    public void setResolved(Integer resolved) 
    {
        this.resolved = resolved;
    }

    public Integer getResolved() 
    {
        return resolved;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("logId", getLogId())
            .append("pileId", getPileId())
            .append("errorCode", getErrorCode())
            .append("errorMsg", getErrorMsg())
            .append("errorTime", getErrorTime())
            .append("resolved", getResolved())
            .toString();
    }
}
